package cn.iocoder.yudao.module.erp.controller.admin.saleorder.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 销售订单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SaleOrderPageReqVO extends PageParam {

    @Schema(description = "销售单号")
    private String billNo;

    @Schema(description = "销售方")
    private String billContacter;

    @Schema(description = "销售日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime billDate;

    @Schema(description = "销售员", example = "李四")
    private String billContacterName;

    @Schema(description = "客户订单号")
    private String customerOrderNo;

    @Schema(description = "客户名称（公司）", example = "赵六")
    private String customerName;

    @Schema(description = "项目名称", example = "张三")
    private String projectName;

    @Schema(description = "结算方式", example = "张三")
    private String settlementName;

    @Schema(description = "是否收款")
    private Boolean syncPay;

    @Schema(description = "是否出库")
    private Boolean syncOut;

    @Schema(description = "是否开票")
    private Boolean syncInvoice;

    @Schema(description = "报价有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expireTime;

    @Schema(description = "添加时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "商品信息")
    private String goodsInfo;

}